package com.yue.lin.controller;

import com.yue.lin.domain.Permission;
import com.yue.lin.service.PermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class PermissionController {
    @Autowired
    private PermissionService permissionService;

    @GetMapping("allPermissionByUid")
    public List<Permission> allPermissionByUid(){
        return permissionService.allPermissionByUid("40289381713ac6a101713ac6e8060000");
    }
}
